package com.qms.qep.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 生产工序信息对象 process
 * 
 * @author qep
 */
public class Process extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 工序编号 */
    @Excel(name = "工序编号")
    private String code;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String name;

    /** 工序类型ID */
    @Excel(name = "工序类型ID")
    private Long typeId;
    
    /** 工序类型名称 */
    @Excel(name = "工序类型名称")
    private String typeName;

    /** 工序描述 */
    @Excel(name = "工序描述")
    private String description;

    /** 标准工时(分钟) */
    @Excel(name = "标准工时(分钟)")
    private Double standardTime;

    /** 状态（1启用 0停用） */
    @Excel(name = "状态", readConverterExp = "1=启用,0=停用")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    
    public String getTypeName() 
    {
        return typeName;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStandardTime(Double standardTime) 
    {
        this.standardTime = standardTime;
    }

    public Double getStandardTime() 
    {
        return standardTime;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("description", getDescription())
            .append("standardTime", getStandardTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 